<?php
	$db = @new mysqli($_CONFIG['database']['DbHost'], $_CONFIG['database']['DbUser'],$_CONFIG['database']['DbPass'],$_CONFIG['database']['DbName']);
	if (mysqli_connect_errno()) {
	    echo('Connect failed: #'.mysqli_connect_errno().mysqli_connect_error());
	    exit();
	}

	$db->query("SET NAMES '".$_CONFIG['database']['DefaultCharset']."'");
	
?>